package cn.com.jinhao.provider.business.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统字典表(TbSysDict)实体类
 *
 * @author ShaneWei
 * @since 2020-05-15 14:20:09
 */

@Data
@Table(name = "TB_SYS_DICT")
public class SysDict implements Serializable {
    private static final long serialVersionUID = 376565351489961657L;

    @Id
    @KeySql(sql = "select SYS_GUID() from dual", order = ORDER.BEFORE)
    protected String id;

    /**
    * 编码
    */
    @Column(name = "CODE")
    private String code;
    /**
    * 父编码
    */
    @Column(name = "PAID")
    private String paid;
    /**
    * 名称
    */
    @Column(name = "NAME")
    private String name;
    /**
    * 状态
    */
    @Column(name = "STAT")
    private Short stat = 1;
    /**
    * 备注
    */
    @Column(name = "MEMO")
    private String memo;
    /**
    * 部门编码
    */
    @Column(name = "DEPT_CODE")
    private String deptCode;
    /**
     * 系统值
     */
    @Column(name = "SYS_VALUE")
    private String sysValue;

    /**
     * 值类型
     */
    @Column(name = "SYS_TYPE")
    private String sysType;
    /**
    * 创建人ID
    */
    @Column(name = "CREATED_BY_ID")
    private String createdById;
    /**
    * 创建人
    */
    @Column(name = "CREATED_BY")
    private String createdBy;
    /**
    * 创建时间
    */
    @Column(name = "CREATED_TIME")
    private Date createdTime;
    /**
    * 更新人ID
    */
    @Column(name = "UPDATED_BY_ID")
    private String updatedById;
    /**
    * 更新人
    */
    @Column(name = "UPDATED_BY")
    private String updatedBy;
    /**
    * 更新时间
    */
    @Column(name = "UPDATED_TIME")
    private Date updatedTime;

}